package cn.qh.com.entity;

import java.util.ArrayList;
import java.util.Date;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 属性分组(PmsAttrGroup)表实体类
 *
 * @author makejava
 * @since 2021-11-29 16:35:56
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "pms_attr_group")
@SuppressWarnings("serial")
public class PmsAttrGroup extends Model<PmsAttrGroup> {


    @TableField(value = "attr_group_id")
    private Long attrGroupId;  //分组id


    @TableField(value = "attr_group_name")
    private String attrGroupName;  //组名


    @TableField(value = "sort")
    private Integer sort;  //排序


    @TableField(value = "descript")
    private String descript;  //描述


    @TableField(value = "icon")
    private String icon;  //组图标


    @TableField(value = "catelog_id")
    private Long catelogId;  //所属分类id


    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private int deleted;  //逻辑删除标志


    @TableField(value = "createdTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;


    @TableField(value = "updatedTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;


    @Version
    private int version;   //版本

    @TableField(exist = false)
    private List<Long> CatLogPath = new ArrayList<>();


}
